package com.ruoyi.wfshou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wfshou.mapper.LogisticsMapper;
import com.ruoyi.wfshou.domain.Logistics;
import com.ruoyi.wfshou.service.ILogisticsService;

/**
 * 物流技术类Service业务层处理
 * 
 * @author zongying
 * @date 2023-06-19
 */
@Service
public class LogisticsServiceImpl implements ILogisticsService 
{
    @Autowired
    private LogisticsMapper logisticsMapper;

    /**
     * 查询物流技术类
     * 
     * @param logisId 物流技术类主键
     * @return 物流技术类
     */
    @Override
    public Logistics selectLogisticsByLogisId(Long logisId)
    {
        return logisticsMapper.selectLogisticsByLogisId(logisId);
    }

    /**
     * 查询物流技术类列表
     * 
     * @param logistics 物流技术类
     * @return 物流技术类
     */
    @Override
    public List<Logistics> selectLogisticsList(Logistics logistics)
    {
        return logisticsMapper.selectLogisticsList(logistics);
    }

    /**
     * 新增物流技术类
     * 
     * @param logistics 物流技术类
     * @return 结果
     */
    @Override
    public int insertLogistics(Logistics logistics)
    {
        return logisticsMapper.insertLogistics(logistics);
    }

    /**
     * 修改物流技术类
     * 
     * @param logistics 物流技术类
     * @return 结果
     */
    @Override
    public int updateLogistics(Logistics logistics)
    {
        return logisticsMapper.updateLogistics(logistics);
    }

    /**
     * 批量删除物流技术类
     * 
     * @param logisIds 需要删除的物流技术类主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsByLogisIds(Long[] logisIds)
    {
        return logisticsMapper.deleteLogisticsByLogisIds(logisIds);
    }

    /**
     * 删除物流技术类信息
     * 
     * @param logisId 物流技术类主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsByLogisId(Long logisId)
    {
        return logisticsMapper.deleteLogisticsByLogisId(logisId);
    }
}
